package com.epalmpay.util;

import org.springframework.context.ApplicationContext;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
 * 项目名称：
 * @author:
 * 修改日期：2015/11/2
*/
public class Const {
	public static final String SESSION_SECURITY_CODE = "sessionSecCode";//验证码
	public static final String SESSION_TiME_CODE = "sessionTimeCode";//时间有效期验证码
	public static final String SESSION_PHONE_CODE = "sessionPhoneCode";//手机号码有效期验证码
	public static final String SysOrderNum_PHONE = "SysOrderNumPhone";//手机号
	public static final String SysOrderNum_cardCvn = "SysOrderNumcardCvn";//cvn
	public static final String SysOrderNum_cardExpdate = "SysOrderNumcardExpdate";//信用卡有效期
	
	public static final String SysOrderNum_CODE = "SysOrderNumCode";//快捷支付充值
	public static final String PaySign_CODE = "paySignCode";//签名内容验证码
	public static final String ThirdOrderNum_CODE = "thirdOrderNumPhoneCode";//第三方订单号验证码
	public static final String cardNum_CODE = "cardNumCode";
	public static final String bankCode_CODE = "bankCodeCode";
	public static final String SESSION_USER = "sessionUser";			//session用的用户
	public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String sSESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String SESSION_menuList = "menuList";			//当前菜单
	public static final String SESSION_allmenuList = "allmenuList";		//全部菜单
	public static final String SESSION_QX = "QX";
	public static final String SESSION_userpds = "userpds";			
	public static final String SESSION_USERROL = "USERROL";				//用户对象
	public static final String SESSION_USERNAME = "USERNAME";			//用户名
	public static final String LOGIN = "/login_toLogin.do";				//登录地址
	public static final String NO_INTERCEPTOR_PATH = ".*/((service)|(login)|(logout)|(manager)|(api)|(payplat)|(channel)|(prePurchase)|(group)|(merchant)|(agent)|(shop)|(app)|(wechat)|(user)|(static)|(main)|(oilCardRecharge)|(oilCardPay)).*";	//不对匹配该值的访问路径拦截（正则）
	public static ApplicationContext WEB_APP_CONTEXT = null; //该值会在web容器启动时由WebAppContextListener初始化
	
	public static Map<String,String> CacheMap=new ConcurrentHashMap<String, String>(); //内存缓存集合
	public static Map<String,Object> CacheMapObject=new ConcurrentHashMap<String, Object>(); //内存缓存集合
	
	public static final String WXCHARGE_NOTIFY_URL ="/payplat/callback/weixinpay";//微信原生充值

//	public static final String WXGOODPAY_NOTIFY_URL ="/payplat/weixinGoodPay";//支付宝充值
//	public static final String WXFLOWSPAY_NOTIFY_URL ="/payplat/weixinFlows";//云流-流量商品购买
	
	
	public static final String AceKey = "1234567890qqwertyuiopasdfghjklzxcvbnm";
	public static final String  GEOCODER="http://apis.map.qq.com/ws/geocoder/v1/?&key="+Const.MAP_KEY+"&address=";//地址描述到所述位置坐标的转换url
	public static final String  MAP_KEY="JH6BZ-IWI3D-DCC44-PNWOM-4DHWV-QVBUO";//地址描述到所述位置坐标的转换url
	
	
	public static final String  APP_RECHARGE="CZW";//app充值订单开头
	public static final String  APP_CONSUME="CZH";//app消费订单开头
	public static final String  APP_TRANSFER ="CZS";//app转账订单开头
	public static final String  APP_WITHDEAW ="CZY";//app提现订单开头 
	public static final String  APP_REPAYMENT ="CZF";//app信用卡订单开头  
	
//	public static final String  OSG_CONSUME  ="OSG";//服务商品订单订单开头
	
	
	public static final String  WX_WITHDEAW  ="WZY";//微信提现订单开头
	public static final String  PLATFORM_WITHDEAW  ="PZW";//平台提现开头订单
	public static final String  SEND_RECHARGE  ="WSE";//充值送订单开头
	
	public static final String  WECHAT_RECHAREG  ="ORG";//普通微信充值订单开头
//	public static final String  WECHAT_MOC  ="MOC";//微信商城订单
	

	
	public static final String  CONSUMPTION_REAL  ="CPR";//商城商品订单前缀
	public static final String  CONSUMPTION_VIRTUAL  ="CPV";//服务商品订单前缀
	public static final String  POS_DEVICE  ="POS";//POS机线下消费订单前缀
	public static final String  TK_DEVICE  ="TK";//富友台卡线下消费订单前缀
	public static final String XYJ_DEVICE = "XYJ";//洗衣机消费订单前缀
	
	public static final String  TK_TICK  ="TICK";//富友面对面收款用户被扫

	public static final String  XLTK_DEVICE  ="XLTK";//上海迅联 台卡线下消费订单前缀
	
	
	public static final String  XDLTK_DEVICE  ="XDLTK";//新大陆   台卡线下消费订单前缀
	
	
	public static final String  TK_XYJ  ="XYJ";//富友台卡洗衣机支付
	
	//默认红包冻结金额(分)
	public static final int REDPACKAGE_FREEZE_AMOUNT = 5000000;
	//默认红包冻结金额最低值(分)
	public static final int REDPACKAGE_FREEZE_AMOUNT_MIN = 100000;
	//默认优惠券冻结金额(分)
	public static final int COUPON_FREEZE_AMOUNT = 5000000;
	//默认优惠券冻结金额最低值(分)
	public static final int COUPON_FREEZE_AMOUNT_MIN = 100000;
	
	// 字符编码格式 目前支持 gbk 或 utf-8
	public static final String CHARTSET_UTF8 = "utf-8";
		
		// 签名方式 不需修改
	public static final String ALIPAY_DES_TYPE_RSA = "RSA";

	//推送参数 start
	public static final String APPKEY = "24808217";

	public static final String ANDROID_ACTION = "PushMessageToAndroid";

	public static final String IOS_ACTION = "PushNoticeToiOS";

	public static final String APNSENV = "DEV";

	public static final String ACCESSKEYID = "exjsVQTD9YD1zhou";

	public static final String ACCESSKEYSECRET = "T6UafpL4wpqnzGndAg0b1aVWhDFeyf";

	public static final String REGION = "cn-hangzhou";
	//推送参数 end

	//public static final String PROFILEURL = "http://sbs.eboss007.com:8012/";
}
